﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;

namespace HotelRegistrationSystem.Models
{
    public class RoomReservesManageModel
    {
        [Display(Name="Hotel name:")]
        public string HotelName { get; set; }

        [Display(Name = "Room name:")]
        public string RoomName { get; set; }

        public int RoomId { get; set; }

        public IList<RoomReserveManageModel> RoomReservations { get; set; }

        public RoomReservesManageModel(string hotelName, string roomName, int roomId)
        {
            HotelName = hotelName;
            RoomName = roomName;
            RoomId = roomId;
            RoomReservations = new List<RoomReserveManageModel>();
        }
    }

    public class RoomReserveManageModel
    {
        public string Username { get; set; }

        public int Beds { get; set; }

        public DateTime StartDate { get; set; }

        public DateTime EndDate { get; set; }

        public int ReservationId { get; set; }

        public int ReservationStatusId { get; set; }

        public RoomReserveManageModel(string username, int beds, DateTime start, DateTime end, int reservationId, int reservationStatusId)
        {
            Username = username;
            Beds = beds;
            StartDate = start;
            EndDate = end;
            ReservationId = reservationId;
            ReservationStatusId = reservationStatusId;
        }
    }
}